Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix grafana_cloud_service_account read #1424

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

julienduchesne
Copy link
Member

@julienduchesne julienduchesne commented Mar 18, 2024

Regression from #1412
In that PR, I noticed that the ID format for the stack service account was incomplete; it contained only the SA ID, and without the stack slug, it didn't really allow for imports
I fixed it, but now read operations from the old ID format didn't work anymore

To fix this, we can support the old ID format (just the SA ID) until the next major version

This is unfortunately not testable with the acceptance test framework, but I tested it manually

Regression from #1412
In that PR, I noticed that the ID format for the stack service account is incomplete
It contained only the SA ID, and without the stack slug, it didn't really allow for imports
I fixed it, but now read operations from the old ID format didn't work anymore

To fix this, we can support the old ID format (just the SA ID) until the next major version

This is unfortunately not testable with the acceptance test framework, but I tested it manually
Copy link

In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically.
To do so, a Grafana Labs employee must trigger the cloud acceptance tests workflow manually.

Probably new validation in the API
@julienduchesne julienduchesne marked this pull request as ready for review March 18, 2024 15:03
@julienduchesne julienduchesne requested review from a team as code owners March 18, 2024 15:03
@julienduchesne julienduchesne requested review from peterschretlen and The-9880 and removed request for a team March 18, 2024 15:03
@julienduchesne julienduchesne merged commit a0b2f87 into main Mar 18, 2024
25 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/fix-stack-sa-import branch March 18, 2024 15:45
julienduchesne added a commit that referenced this pull request Mar 18, 2024
Closes #1425

I didn't fix all of it in #1424, unfortunately. Now, I have a test though!
julienduchesne added a commit that referenced this pull request Mar 19, 2024
* One more fix for `grafana_cloud_stack_service_account`
Closes #1425

I didn't fix all of it in #1424, unfortunately. Now, I have a test though!

* Remove trailing whiteline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants